package com.itheima.sc.api.sms;

import com.itheima.sc.pojo.sms.FlashPromotionSession;

import java.util.List;

public interface SmsFlashPromotionSessionApi {

    //判断是否存在
    boolean existSession(Long flashPromotionSessionId);

    //添加场次信息
    void addFlashSession(FlashPromotionSession promotionSession);

    //删除场次信息
    void deleteFlashSession(Long id);

    //获取全部场次的信息
    List<FlashPromotionSession> getFlashSessionList();
    //获取全部可选场次及其数量
    List<FlashPromotionSession> getFlashSessionSelectList(Integer flashPromotionId);

    //修改启用状态
    void updateFlashSessionStatus(Long id, Integer status);

    //修改场次
    void updateFlashSession(FlashPromotionSession session);

    //查询场次详情
    FlashPromotionSession selectFlashSessionInfo(Long id);

    //获取状态
    int findStatus(Long id);
}
